package org.example.SecondarySortApp

import org.apache.spark.{SparkConf, SparkContext}
import org.example.SecondarySortKey

object scala {
  def main(args: Array[String]): Unit = {
    val conf=new SparkConf().setAppName("scala").setMaster("local");
    var sc=new SparkContext(conf);
    val lines=sc.textFile("file:///")
    var pariWithSortKey=lines.map(line=>(new SecondarySortKey(line.split(" ")(0).toInt,line.split(" ")(1).toInt)))
  }
}
